DX11 DRAW LINE

Draws a line between the provided coordinates with the given thickness (in pixels) and colour(s).
If two colours are supplied, the line will be drawn as a gradient from the first colour at the first coordinates to the second colour at the second coordinates.

  Syntax
DX11 DRAW LINE x1, y1, x2, y2, colour, [colour2], [thickness]
  Parameters
x1
Integer
The first X coordinate of the line.
y1
Integer
The first Y coordinate of the line.
x2
Integer
The second X coordinate of the line.
y2
Integer
The second Y coordinate of the line.
colour
Dword
The colour to draw the line in (or the colour of the first coordinate if providing two colour arguments).
[Optional] colour2
Dword
The colour to interpolate from the first colour to as the line approaches its final coordinate.
[Optional] thickness
Dword
The thickness of the line (in pixels). Will default to 1 if omitted.

  Returns

This function does not return a value.

  See also

DIRECTDRAWING Functions Menu
DX11 Function Categories